package com.ruoyi.activiti.utils;

import java.util.Date;

public class DateTimeUtils {

    /**
     * @param time 时间毫秒值
     * @return  将毫秒值转化为 天/时/分/秒
    * */
    public static String millConverterStr(Long time) {
        if(time == null){
            return "";
        }
        time = time / 1000;
        long day1 = time / 86400L;
        long hour1 = time % 86400L / 3600L;
        long minute1 = time % 3600L / 60L;
        long second1 = time % 60L;
        return day1 + "天" + hour1 + "小时" + minute1 + "分钟" + second1 + "秒";
    }

}
